package com.sdtv.mediunfusion.mvp.model;

import com.sdtv.basemodule.mvp.IModel;
import com.sdtv.basemodule.mvp.IView;
import com.sdtv.mediunfusion.mvp.contract.MainContract;

import java.util.HashMap;

import io.reactivex.Observable;

/**
 * @ProjectName: MediunFusion
 * @Package: com.sdtv.mediunfusion.mvp.model
 * @ClassName: PunchModel
 * @Description: 主页所使用的model
 * @Author: 小郭同学
 * @CreateDate: 2019-07-30 09:59
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class PunchModel extends IModel {


    public PunchModel(IView mIView) {
        super(mIView);
    }

    /**
     * 获取莫一天或者某个月的打卡记录
     *
     * @param data
     * @return
     */
    public Observable getPunchLogging(String data) {
        return addObservable(MainContract.getAppService()
                .getPunchLogging(data));

    }

    /**
     * 提交打卡信息
     */
    public Observable submitPunchMessage(HashMap<String, String> paramMap) {
        return addObservable(MainContract.getAppService().punch(paramMap));
    }


}
